package moonteam.moonisland;

import lombok.Getter;
import moonteam.moonisland.utils.LogUtils;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

/**
 *
 * @author MoonTeam
 *
 */
public final class Main extends JavaPlugin {

    @Getter
    public static Main instance;

    @Override
    public void onEnable() {
        instance = this;
        load();
    }

    public void load() {
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") == null) {
            LogUtils.send("Could not find PlaceholderAPI! This plugin is required.");
            Bukkit.getPluginManager().disablePlugin(this);
        }
    }

}
